package com.itheima_09.StringBuilder;

import java.util.Scanner;

public class Test03 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入一个字符串");
        String s = sc.nextLine();

        String ss = reverse(s);
        System.out.println(ss);
    }
    public static String reverse(String s){
        /*StringBuilder sb = new StringBuilder(s);
        StringBuilder sb1 = sb.reverse();
        String s1 = sb1.toString();
        return s1;*/
        return new StringBuilder(s).reverse().toString();
    }
}
